/**
 * Hunan Jiao Tai Technology Co., Ltd.
 * The code belongs to the company and can not be used in other ways
 * Created by the company's technical personnel.
 * Ownership is the responsibility of the company's technology department.
 **/

package com.shop.common.enums.System;

import lombok.Getter;

import java.io.Serializable;

/**
 * 系统参数皮遏制枚举类
 *
 **/
@Getter
public enum SystemGroupEnum implements Serializable {

    ROUTINE_HOME_ACTIVITY("routine_home_banner", "首页banner"),
    ROUTINE_HOT_SEARCH("routine_hot_search", "热门搜索"),
    ;

    private String key;
    private String name;

    SystemGroupEnum(String key, String name) {
        this.key = key;
        this.name = name;
    }

    public static SystemGroupEnum val(String key) {
        for (SystemGroupEnum enumObj : SystemGroupEnum.values()) {
            if(enumObj.key.equals(key)) {
                return enumObj;
            }
        }
        return null;
    }


}
